//
//  KingOfCarCell.m
//  New_Runway
//
//  Created by mack on 2018/2/2.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import "KingOfCarCell.h"

@implementation KingOfCarCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self addAllViews];
        self.contentView.backgroundColor = [UIColor whiteColor];
    }
    return self;
}

-(void)addAllViews
{
    kSelfWeak;
    _CarIcon = [[UIImageView alloc] init];
    _CarIcon.contentMode = UIViewContentModeScaleAspectFit;
    [self.contentView addSubview:_CarIcon];
    [_CarIcon mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(weakSelf.contentView).mas_offset(16);
        make.centerY.equalTo(weakSelf.contentView);
//        make.height.mas_equalTo(40);
        make.width.mas_equalTo(40);
    }];
    _CarName = [[UILabel alloc] init];
    [self.contentView addSubview:_CarName];
    _CarName.textColor = MAIN_FONT_COLOR();
    _CarName.font = kFontSize(13);
    [_CarName mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(weakSelf.contentView).mas_offset(80);
        make.centerY.equalTo(weakSelf.contentView);
    }];
    
    
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
